{% extends "base.html" %}
{% load static %}

{% block title %}read{% endblock %}
{% block css %}
<style>
    .img-thumbnail {
        width: 100%;
        height: 20%;
    }
</style>
{% endblock %}
{% block content %}
<div class="row">
    {% for i in file_list %}
    {% load mytags %}
    <div class="col-md-4">
        <div class="col-md-12">
            <img src="{% static 'upload/'|str_add:i %}" alt="some file" class="img-thumbnail">
        </div>
        <div class="col-md-12" style="text-align: center">
            <a href="" class="btn btn-info">查看</a>
            <a href="{% url 'remove' i %}" class="btn btn-danger">删除</a>
        </div>
    </div>
    {% endfor %}
</div>

{% endblock %}
